/********************ES6写法*********************/

/*class Test {
    constructor() {
        this.a=1
    }

    testa(){
        console.log('1111')
        console.log('雷猴啊!!!')
    }
}

/!*******继承***********!/
class child extends Test{
    testb(){
        console.log('child')
    }
}

var obj=new child()
obj.testa()
console.log(obj.a)*/


import React from "react";

/*class App extends React.Component{
    render() {
        return <div>
            App~hello
        </div>
    }
}*/

/**************加括号()**********************/
class App extends React.Component {

    render() {
        return (
            <div>
                App~hello
            </div>
        )
    }
}

export default App